package com.tensquare.friend.client;


import com.tensquare.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * Created by WF on 2020/12/23 16:12
 */
@FeignClient("tensquare-user")
@Component
public interface UserClient {

    //1.增加关注数
    @PostMapping("/user/incfollow/{userid}/{x}")
    void incFollow(@PathVariable("userid") String userid, @PathVariable("x") int x);

    //2.增加粉丝数
    @PostMapping("/user/incfans/{userid}/{x}")
    void incFans(@PathVariable("userid") String userid, @PathVariable("x") int x);
}
